package com.codedancer.campus.client.api.lostFoundItem.ro;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;

@Data
@ApiModel("物品添加或修改Ro")
public class LostFoundItemAddOrUpdateRo {

    @ApiModelProperty("名称")
    @Size(min = 1, max = 16, message = "名称在1-16为之间")
    private String name;

    @ApiModelProperty("描述")
    @NotEmpty(message = "描述为空")
    private String description;

    @ApiModelProperty("发布类型 1表示拾取 2表示丢失")
    @NotNull(message = "发布类型为空")
    private Integer type;

    @ApiModelProperty("丢失或拾取地点")
    @NotEmpty(message = "请输入丢失或拾取地点")
    private String location;

    @ApiModelProperty("联系方式")
    @NotEmpty(message = "请输入联系方式")
    private String contactWay;

    @ApiModelProperty("商品图片")
    @NotNull(message = "至少上传一张图片")
    private List<String> imageUrls;

    @ApiModelProperty("分类uuid")
    @NotEmpty(message = "请选择分类")
    private String categoryUuid;

    @ApiModelProperty("是否同步到自由广场")
    @NotNull(message = "请选择是否同步到自由广场")
    private Boolean isSyncLibertySquare;
}
